<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>在属性中绑定事件</title>
</head>
<body>
            <input type="button" name="box" value="点我" onclick="alert('今天是晴天')">
</body>
</html>